<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- inc:inc.head -->
<script>
//多选赋值
function checkbox_val(divid,divid2,val)
{
	checklist = document.getElementById(divid).getElementsByTagName("input");
	len = checklist.length;
	result = "";
	for(i=0;i<len;i++)
	{
		if(checklist[i].checked==true)
		{
			result += checklist[i].value+",";
		}
	}
	result = result.substr(0, result.length - 1);  
	document.getElementById(divid2).value = result;
}
</script>
</head>

<body>

<!-- inc:inc.top -->

<div class="margin padding_tb">
  <div class="book">
    <br />
    自定义表单
    <form method="post" action="form.php?act=addok" onsubmit="return add_chk(this);">
    
      <!--这里的value改成后台设置的表单标示-->
      <input type="hidden" name="form_sign" id="form_sign" value="customize" />
      <!--这里的value改成后台设置的表单标示-->
      
      <div class="book_input">
        <div>{:lan("cn"=>"姓名","en"=>"Name")} <span style="color:red;">*</span></div>
        <p><input type="text" name="username" id="username" class="ginput" /></p>
      </div>
      
      <div class="book_input">
        <div>{:lan("cn"=>"邮箱","en"=>"E-mail")} <span style="color:red;">*</span></div>
        <p><input type="text" name="email" id="email" class="ginput" /></p>
      </div>
      
      <div class="book_input">
        <div>{:lan("cn"=>"电话","en"=>"Tel")}</div>
        <p><input type="text" name="tel" id="tel" class="ginput" /></p>
      </div>
      
      <div class="book_input">
        <div>建站版本</div>
        <p>
          <input type="hidden" id="build" name="build" />
          <span id="build_span">
          <input type="checkbox" value="高端官网" onchange="checkbox_val('build_span','build','高端官网')" />高端官网
          <input type="checkbox" value="系统定制" onchange="checkbox_val('build_span','build','系统定制')" />系统定制
          <input type="checkbox" value="在线商城" onchange="checkbox_val('build_span','build','在线商城')" />在线商城
          <input type="checkbox" value="网络推广" onchange="checkbox_val('build_span','build','网络推广')" />网络推广
          </span>
        </p>
      </div>
      
      <div class="book_input">
        <div>建站类型</div>
        <p>
          <input type="radio" name="webtype" value="外贸型" />外贸型
          <input type="radio" name="webtype" value="集团品牌型" />集团品牌型
          <input type="radio" name="webtype" value="营销官网型" />营销官网型
          <input type="radio" name="webtype" value="内销型" />内销型
          <input type="radio" name="webtype" value="响应式" />响应式
        </p>
      </div>
            
      <div class="book_input book_textarea">
        <div>{:lan("cn"=>"公司名称","en"=>"Company")}</div>
        <p><input type="text" name="company" id="company" class="ginput" value="" /></p>
      </div>
      
      <div class="book_input book_textarea">
        <div>{:lan("cn"=>"联系地址","en"=>"Address")}</div>
        <p><input type="text" name="address" id="address" class="ginput" value="" /></p>
      </div>
      
      <input type="submit" value="{:lan('cn'=>'提交','en'=>'Submit')}" class="gbutton" />
    </form>
  </div>
</div>

<!-- inc:inc.footer -->

</body>
</html>